package com.zengde.zxfy.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MinioConfig {
    
    @Bean
    public MinioClient minioClient() {
        return MinioClient.builder()
                .endpoint("http://objectstorageapi.hzh.sealos.run")  // 外部访问地址
                .credentials("k0lm14vm", "qdttrk4rr9sswptc")  // Access Key 和 Secret Key
                .build();
    }
} 